//
//  UILabel+MYLabel.m
//  CarSource
//
//  Created by caohaifeng on 16/4/2.
//  Copyright © 2016年 caohaifeng. All rights reserved.
//

#import "UILabel+MYLabel.h"

@implementation UILabel (MYLabel)

- (instancetype)initWithCarSourceLabelTextAlignment:(NSTextAlignment)textAlignment {
    if (self = [super init]) {
        self.font = [UIFont systemFontOfSize:14];
        self.textColor = MYRGBColor(51, 51, 51, 1);
        self.textAlignment = textAlignment;
    }
    return self;
}

- (instancetype)initWithCarSourceLabel2TextAlignment:(NSTextAlignment)textAlignment {
    if (self = [super init]) {
        self.font = [UIFont systemFontOfSize:12];
        self.textColor = MYRGBColor(102, 102, 102, 1);
        self.textAlignment = textAlignment;
    }
    return self;
}

- (instancetype)initWithCarSourceLabel3TextAlignment:(NSTextAlignment)textAlignment {
    if (self = [super init]) {
        self.font = [UIFont systemFontOfSize:12];
        self.textColor = MYRGBColor(51, 51, 51, 1);
        self.textAlignment = textAlignment;
    }
    return self;
}

- (instancetype)initWithCarSourceLabel4TextAlignment:(NSTextAlignment)textAlignment {
    if (self = [super init]) {
        self.font = [UIFont systemFontOfSize:14];
        self.textColor = MYRGBColor(0, 112, 221, 1);
        self.textAlignment = textAlignment;
    }
    return self;
}

- (instancetype)initWithCarSourceLabel5TextAlignment:(NSTextAlignment)textAlignment {
    if (self = [super init]) {
        self.font = [UIFont systemFontOfSize:14];
        self.textColor = MYRGBColor(235, 0, 0, 1);
        self.textAlignment = textAlignment;
    }
    return self;
}

@end
